package com.ruoyi.act.module.service;

import com.ruoyi.act.module.domain.ActHistory;
import org.activiti.engine.history.HistoricTaskInstance;
import org.apache.batik.transcoder.TranscoderException;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;

public interface IHistoryService {


    /**
     * 查询任务历史执行记录
     *
     * @param actHistory
     * @return
     */
    List<HistoricTaskInstance> findTaskList(ActHistory actHistory);

    /**
     * 根据任务id查询流程历史活动
     *
     * @param actHistory
     * @return
     */
    List<Map<String, Object>> findActivityList(ActHistory actHistory);

    /**
     * 获取流程图
     *
     * @param actHistory
     * @return
     */
    InputStream generateDiagram(ActHistory actHistory) throws TranscoderException, IOException;
}
